package com.nanjing.east.cloud.domain;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name="t_pay_hardware")
@Data
@DynamicInsert
@DynamicUpdate
@EntityListeners({AuditingEntityListener.class})
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PayHardware {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private Long id;

    @Column(name="pay_order_no")
    private String payOrderNo;

    @Column(name = "store_id")
    private String storeId;

    @Column(name = "cabinet_id")
    private String cabinetId;

    @Column(name = "lock_id")
    private String lockId;

    @Column(name = "lock_status")
    private String lockStatus;

    @Column(name="create_time")
    private Date createTime;

    @Column(name = "unlock_time")
    private Date unlockTime;

    @Column(name = "update_time")
    private Date updateTime;

}
